import request from '@/utils/request'
const BASE_URL = '/api/yyplatform/admin/layout/dict'

class DictAPI {
  /**
   * 获取字典的数据项
   *
   * @param typeCode 字典编码
   * @returns 字典数据项
   */
  static getOptions(code: string) {
    return request<any, OptionType[]>({
      url: `${BASE_URL}/getOptions`,
      method: 'get'
    })
  }
}
export default DictAPI
